Skip to content

Dynamic

Inherits Instance

Inherited by Accessory, Camera, CharacterModel, Decal, Explosion, GUI3D, Image3D, Light, Marker3D, Model, Particles, Physical, ProximityPrompt, Sound, Text3D

Dynamic is the base class where all objects with a position, rotation and scale derive from.

Properties

Position : Vector3

The position of the object.

Rotation : Vector3

The rotation of the object.

Size : Vector3

The size of the object.

LocalPosition : Vector3

The position of the object relative to its parent.

LocalRotation : Vector3

The rotation of the object relative to its parent.

LocalSize : Vector3

The size of the object relative to its parent.

Quaternion : Quaternion

The rotation of the object represented as a quaternion.

LocalQuaternion : Quaternion

The local rotation of the object represented as a quaternion.

Locked : boolean

Determines whether the object can be selected in the Creator.

Forward : Vector3

The forward direction vector of the object.

The right direction vector of the object.

Up : Vector3

The up direction vector of the object.

Methods

LookAt → nil

Parameters: target [ any ]

Orients the object to look at a target with a specified up vector.

LookAt → nil

Parameters

target [ any ]

up [ Vector3 ]

Orients the object to look at a target with a specified up vector.

Translate → nil

Parameters: translation [ Vector3 ]

Moves the transform in the direction and distance of translation.

RotateAround → nil

Parameters

point [ Vector3 ]

axis [ Vector3 ]

angle [ number ]

Rotates the object around a point by the specified Euler angles.

Rotate → nil

Parameters: eulerAngles [ Vector3 ]

Rotates the object by the specified Euler angles.

GetBounds → Bounds

Parameters: ``

Gets the bounding box of the object.